package com.fallsvc.onlinemusic.service.impl;

import com.fallsvc.onlinemusic.mapper.UserMapper;
import com.fallsvc.onlinemusic.model.User;
import com.fallsvc.onlinemusic.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @auther falls_vc
 * description:
 * @date 2025/3/31  12:09
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper    userMapper;
    @Override
    public User login(User user) {
        return userMapper.login(user);
    }

    @Override
    public User selectUserByName(String username) {
        return userMapper.selectUserByName(username);
    }
}
